// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class TJFueling : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<TJFueling, MasterDbContextLocator>
    {

        public int TJFuelingId { get; set; }
        public string AreaCode { get; set; }
        public string AreaName { get; set; }
        public string GensetNum { get; set; }
        public string CompanyCode { get; set; }
        public decimal? FuelAddedTotal { get; set; }
        public string FuelConsumeTotal { get; set; }
        public decimal? LoadFuelConsumeTotal { get; set; }
        public decimal? EmptyFuleConsumeTotal { get; set; }
        public decimal? FuelCostTotal { get; set; }
        public decimal? RefuelTipTotal { get; set; }
        public decimal? DrunmsCostTotal { get; set; }
        public decimal? KWpowerTotal { get; set; }
        public decimal? RunningPeriodTotal { get; set; }
        public decimal? AdviseLoadOilConsume { get; set; }
        public decimal? CurrentLoadOilConsume { get; set; }
        public string AdviseCurrentLoadDiff { get; set; }
        public decimal? AdviseEmptyOilConsume { get; set; }
        public decimal? CurrentEmptyOilConsume { get; set; }
        public string AdviseCurrenteEmptyDiff { get; set; }
        public DateTime? StatDateBegin { get; set; }
        public DateTime? StatDateEnd { get; set; }
        public string PrjCode { get; set; }
    
        public void Configure(EntityTypeBuilder<TJFueling> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.Property(e => e.AdviseCurrentLoadDiff).HasMaxLength(50);

                entityBuilder.Property(e => e.AdviseCurrenteEmptyDiff).HasMaxLength(50);

                entityBuilder.Property(e => e.AdviseEmptyOilConsume).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.AdviseLoadOilConsume).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.AreaCode).HasMaxLength(100);

                entityBuilder.Property(e => e.AreaName).HasMaxLength(50);

                entityBuilder.Property(e => e.CompanyCode).HasMaxLength(100);

                entityBuilder.Property(e => e.CurrentEmptyOilConsume).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.CurrentLoadOilConsume).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.DrunmsCostTotal).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.EmptyFuleConsumeTotal).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.FuelAddedTotal).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.FuelConsumeTotal)
                    .HasMaxLength(10)
                    .IsFixedLength(true);

                entityBuilder.Property(e => e.FuelCostTotal).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.GensetNum).HasMaxLength(50);

                entityBuilder.Property(e => e.KWpowerTotal).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.LoadFuelConsumeTotal).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.PrjCode).HasMaxLength(50);

                entityBuilder.Property(e => e.RefuelTipTotal).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.RunningPeriodTotal).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.StatDateBegin).HasColumnType("datetime");

                entityBuilder.Property(e => e.StatDateEnd).HasColumnType("datetime");
        }

    }
}

